package cn.topcodes.tcsf.wechat.domain.form;

import cn.topcodes.tcsf.admin.commons.domain.Idable;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * 视频素材表单
 * @author xw
 * @date 2017-12-22 22:46:21
 */
@Data
public class WechatVideoForm implements Idable {

    private Long id;

    @NotBlank(message = "标题不能为空")
    @Length(min = 0, max = 21, message = "标题长度为0~21个字符")
    private String title;

    @NotBlank(message = "简介不能为空")
    @Length(min = 0, max = 120, message = "简介长度为0~120个字符")
    private String introduce;

}
